package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * 西昌冷链系统商品类目
 */

@Entity
@Table(name = "t_cold_category")
public class ColdCategory extends BaseEntity {


    private String label;    // 分类名称

    private String parentId;    // 父ID


    private String type;    // 农资 或  水果

    private String displayImg;  // 显示图片

    @Transient
    private List<ColdCategory> children;


    public ColdCategory() {
    }

    public ColdCategory(String id, String label, String parentId, String displayImg, List<ColdCategory> children) {
        this.setId(id);
        this.label = label;
        this.parentId = parentId;
        this.displayImg = displayImg;
        this.children = children;
    }

    public List<ColdCategory> getChildren() {
        return children;
    }

    public void setChildren(List<ColdCategory> children) {
        this.children = children;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }



    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }



    public String getDisplayImg() {
        return displayImg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setDisplayImg(String displayImg) {
        this.displayImg = displayImg;
    }

}
